Public Class PopupBox
    Inherits Panel
    Implements IJObjective

    Public Sub New()
        MyBase.New()

        Constructor = "new jObjective.PopupBox($('#" & DataID & "'))"

        Style("display") = "none"
    End Sub

    Private Sub Panel_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ID = DataID
    End Sub

    Private Sub PopupBox_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        Attributes("onclick") = [Namespace] & ".hide(); return false;"
    End Sub
End Class